package org.moonshiner.controller.properties;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

import org.moonshiner.model.constants.ApplicationConstants;

public class PropertiesProvider {

	public static final String getProperty(String propertyName) {
		Properties properties = new Properties();
		try {
			properties.load(new FileInputStream(
					ApplicationConstants.PROPERTIES_FILE_PATH));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

		return properties.getProperty(propertyName);
	}

}
